using Castle.Components.Validator;
using Castle.MonoRail.Framework;

namespace WineCellar.Web.Components
{
    public class ShowErrorsComponent :ViewComponent
    {
        private ErrorSummary summary;

        public override void Initialize()
        {
            summary = (ErrorSummary)ComponentParams["summary"];
            base.Initialize();
        }
        public override void Render()
        {
            PropertyBag["summary"] = summary;
            base.Render();
        }
    }
}
